Add a "consumed" parameter to the buffer declaration, and use this to advance
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 6 Dec 2005 17:10:59 +0000 (17:10 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 6 Dec 2005 17:10:59 +0000 (17:10 +0000)
commitef1a53c4e0b7a90a2923f4349e0fbc519faf5a54
treee4a7e3b5b007b20e63ebd696a415865d70590e73
parentb978d1410ab951e54b8b12738ca917d6dd3d7507
Add a "consumed" parameter to the buffer declaration, and use this to advance
through the buffer when the data are read by console clients.  This avoids a
costly memmove with every read from the console.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/console/daemon/io.c